@extends('default.mobile.layouts.companyPublic')
@section('title','企业账户中心-'.Site::get('webname'))
{{--首页css--}}
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/mobile/company/common.css')}}">
    <link rel="stylesheet" href="{{asset('/default/css/mobile/company/welcome.css')}}">
    <link rel="stylesheet" type="text/css" href="{{asset('/vendor/webuploader/dist/webuploader_img.css')}}">
@endsection
{{--头部标签--}}
@section('tag','企业账户中心')
@section('link') href="{{url('mobile')}}" @endsection

{{--主体内容--}}
@section('content')

        <!-- E 头部 -->
    <div class="company_top">
        <div class="company_info">
            <div class="logo"  id="logo"><img src="@if(!empty($companyBasic->logo)){{asset('/upload/companylogo/'.$companyBasic->logo)}}
                @else{{asset('/default/images/mobile/layout/default.png')}}@endif" alt="">
            </div>
            <div class="coment">
                <div class="title">{{str_limit($companyBasic->company_name,24)}}</div>
                <div class="integral">我的积分：<span>@if($userInfo->viptime>date('Y-m-d H:i:s')){{$userInfo->vip_integral}}@else{{$userInfo->integral}}@endif</span></div>
                <div class="certification">
                    @if($companyBasic->cert_status == '1')
                        <i class="verified"></i><span>已认证</span>
                    @else
                        <i></i><span>未认证,请立即认证</span>
                    @endif
                </div>
            </div>
        </div>
        <div class="other_info">
            <ul>
                <li class="gold"><a><i class="top01"></i>{{$integral}}分</a></li>
                <li class="vip"><a><i class="top02"></i>@if($endtime[0]<=0)未开通@else{{$endtime[0]}}{{$endtime[1]}}@endif</a></li>
                <li class="recruit"><a href="{{url('micro_recruitment_'.idEncryption($companyBasic->id).'.html')}}"><i class="top03"></i>微招聘</a></li>
            </ul>
        </div>
    </div>

    <div class="fill company_list">
        <ul>
            <li><a href="{{url('mobile/company/refresh')}}"><i class="icon18"></i><span class="title">一键刷新</span><span class="tip">职位刷新</span></a></li>
            <li><a href="{{url('mobile/company/jobadmin')}}"><i class="icon13"></i><span class="title">职位管理</span><span class="message">{{$companyBasic->companyJobCount}}</span></a></li>
            <li><a href="{{url('mobile/company/resume_manage')}}"><i class="icon14"></i><span class="title">简历管理</span><span class="tip">简历记录</span></a></li>
            <li><a href="{{url('mobile/company/interview_manage')}}"><i class="icon15"></i><span class="title">面试管理</span><span class="message">{{$companyBasic->interviewCount}}</span></a></li>
            <li><a href="{{url('mobile/company/department')}}"><i class="icon20"></i><span class="title">部门管理</span><span class="message">{{$companyBasic->departmentCount}}</span></a></li>
            <li><a href="{{url('mobile/company/search')}}"><i class="icon11"></i><span class="title">搜索器</span><span class="message">{{$companyBasic->searchEngineCount}}</span></a></li>
            <li><a href="{{url('mobile/company/basic_info')}}"><i class="icon16"></i><span class="title">企业资料</span><span class="tip">完善基本资料</span></a></li>
            <li><a><i class="icon21"></i><span class="title">联系电话</span><span class="tip">{{$companyBasic->phone}}</span></a></li>
            <li><a href="{{url('mobile/company/set_account')}}"><i class="icon12"></i><span class="title">账户设置</span><span class="tip">账户认证、账户安全</span></a></li>
        </ul>
    </div>
    {{--退出登录--}}
    <div class="foot">
        <div class="logout">
            <a href="{{url('mobile/company/logout')}}">退出登录</a>
        </div>
    </div>
@endsection

@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/vendor/webuploader/dist/webuploader.html5only.min.js')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/mobile/company/logo_upload.js')}}"></script>
    <script type="text/javascript">
        var _token = '{{csrf_token()}}';
        logoUpload('#logo');
    </script>
    <script>
        @if(session('ok'))
              layerMsg("{{session('ok')}}",2);
        @endif
    </script>
@endsection